package com.example.ymm.modules1.service.dto.socket;

import com.example.ymm.modules1.entity.hl.ex.ExPublishPaper;
import lombok.Data;
import lombok.experimental.FieldNameConstants;

import java.io.Serializable;

/**
 * 系统发给客户端的对象实体信息
 */

@Data
public class SocketManager implements Serializable {

    @FieldNameConstants.Exclude
    public static final String get_paper = "get_paper";//加入考场

    @FieldNameConstants.Exclude
    public static final String START ="START";//开始考试

    @FieldNameConstants.Exclude
    public static final String COUNT_DOWN ="COUNT_DOWN";//通知手机端 还剩余多长时间交卷

    @FieldNameConstants.Exclude
    public static final String PAPER_INFO ="PAPER_INFO";//通知手机端 现在最新的试卷信息

    @FieldNameConstants.Exclude
    public static final String USER_SCORE ="USER_SCORE";//通知手机端 考了多少分

    @FieldNameConstants.Exclude
    public static final String NEXT_GROUP ="NEXT_GROUP";//下一个模块信息

    @FieldNameConstants.Exclude
    public static final String SYS_SUBMIT ="SYS_SUBMIT";//通知手机端 强制交卷


    @FieldNameConstants.Exclude
    public static final String JOIN ="JOIN";//通知进入考场成功 手机端根据次标识跳转到 答题页

    @FieldNameConstants.Exclude
    public static final String CLOSE ="CLOSE";//结束考试

    @FieldNameConstants.Exclude
    public static final String CONNECT_SOCKET = "CONNECT";//连接

    public SocketManager(){

    }
    public SocketManager(String key,String type,String message){
        this.id = key;
        this.type = type;
        this.message = message;
    }

    private String id;

    private String type;

    Integer status;

    private String message;

    private String publishPaperId;

    Integer limitTime;//排名倒计时

    String endDateTime;//结束时间

    ExPublishPaper publishPaper;


}
